﻿@model ApCMS.Models.NewsModels
@{
    ViewBag.Title = "新闻动态";
}
<div id="content">
    <!-- ============================================
            Page Title
        ============================================= -->
    <div id="page-title">
        <div class="container clearfix">
            <h1>
                <span>首页 > 新闻动态</span></h1>
            <div id="portfolio-navigation">
                <a href="#" class="port-nav-list">&nbsp;</a>
            </div>
        </div>
    </div>
    <div class="content-wrap">
        <div class="container clearfix">
            <!-- ============================================
                    Page Content Start
                ============================================= -->
            <ul id="portfolio-filter" class="clearfix">
                <li class="activeFilter"><a href="@Url.Action("Index", "News")">全部</a></li>
                @foreach (var category in Model.ArticleCategoryList)
                {
                    <li class=""><a href="@Url.Action("Index", "News", new { @categoryId = category.ID })">@(category.Name)</a></li>
                }
            </ul>
            <div class="col_full nobottommargin">
                <div id="posts" class="small-posts">
                    @foreach (var list in Model.ArticleList)
                    {   
                        <div class="entry clearfix">
                            <div class="entry_d">
                                <div class="entry_date">
                                    <div class="day">
                                        @(list.ModifyTime != null ? list.ModifyTime.Value.Year : 0)</div>
                                    <div class="month">
                                        @(list.ModifyTime != null ? list.ModifyTime.Value.Month : 0)-@(list.ModifyTime != null ? list.ModifyTime.Value.Day : 0)</div>
                                </div>
                                <div class="entry_title">
                                    <h2>
                                        @(list.Title)</h2>
                                </div>
                                <ul class="entry_meta clearfix">
                                    <li><i class="icon-user"></i>@(list.Author)</li>
                                </ul>
                                <div class="clear">
                                </div>
                                <span class="page-divider"><span></span></span>
                                <div class="entry_content">
                                    @Html.Raw(list.Content ?? "暂无信息......")
                                </div>
                            </div>
                        </div>
                    }
                </div>
            </div>
            <!-- ============================================
                Page Content End
            ============================================= -->
        </div>
    </div>
</div>
